import * as TYPES from "../action-types";

let initial = {
  info: null,
};

export default function baseReducer(state = initial, action) {
  let newState = JSON.parse(JSON.stringify(state));

  switch (action.type) {
    case TYPES.BASE_INFO:
      newState.info = action.info;
      break;
    default:
      break;
  }

  return newState;
}
